package org.haredot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.haredot.entity.Position;

import java.util.List;

@Mapper
public interface PositionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Position record);

    Position selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Position record);

    List<Position> findAllPositions();

    Position findByName(String name);
}